package com.rfid.protocol;

/**
 * @author Administrator
 * @date 2020/9/17
 */
public class NotifyCommand extends Instruction {


    @Override
    public void invoke(byte[] data) {
        byte[] epc = new byte[data.length - 5];
        System.arraycopy(data, 3, epc, 0, epc.length);
        String epcStr = Tools.Bytes2HexString(epc);
       // EventBus.getDefault().post(new ReadEvent(epcStr));

    }

    @Override
    public byte[] getCommand() {
        return new byte[]{0x22};
    }
}